﻿IF EXISTS (SELECT * FROM sysobjects WHERE type = 'V' AND name = 'FireDevice_View')
BEGIN
  DROP  View FireDevice_View
END
GO
CREATE View FireDevice_View 
AS
   SELECT A.*,B.EnterpriseName,B.Addess FROM FireDevice A 
JOIN Enterprises_View B ON A.EnterpriseID=B.EnterpriseID
GO
